package org.jeecg.modules.system.mapper;

import java.util.List;

import org.jeecg.modules.system.entity.SysDepart;
import org.jeecg.modules.system.entity.SysUserDepart;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import io.lettuce.core.dynamic.annotation.Param;

public interface SysUserDepartMapper extends BaseMapper<SysUserDepart>{

	List<SysUserDepart> getUserDepartByUid(@Param("userId") String userId);

	//根据编码查询部门
	SysDepart queryDepartBycode(@Param("code")String code);
	SysDepart queryDepartById(@Param("code")String id);
	/**
	 * 根据部门名称查询部门信息
	 * @return
	 */
	SysDepart getDepartDetailByname(@Param("departName")String departName);
}
